<extend name="Public/base" />
<block name="body">
	<!-- 标题栏 -->
	<div class="main-title">
		<h2>订单管理/待发货订单</h2>
	</div>

	<!-- 高级搜索 -->
	<div class="user-center">
		<div class="search-form fr cf">
			<div class="sleft">
				<input type="text" name="condition" class="search-input" value="{:I('condition')}" placeholder="请输入ID或手机号">
			</div>
		</div>
		<div class="search-form fr cf">
			<div class="sleft">
				<input type="text" name="condition" class="search-input" value="{:I('condition')}" placeholder="请输入订单号">
			</div>
		</div>

		<div class="search-form fr cf">
			<div class="sleft">
				<select >
					<option>选择产品分类</option>
					<option>抢购商品</option>
					<option>预约商品</option>
					<option>定制商品</option>
				</select>
			</div>
		</div>
		<div class="sous" style="margin-top: -3px;text-align: center">
			<a class="sch-btn" href="javascript:;" id="search" url="{:U('AppUser/userList')}"><span>搜索</span></a>
		</div>
	</div>
	<!-- 数据列表 -->
	<div class="table-striped－main">
		<ul>
			<li><a class="table-striped－main-great" href="http://localhost/qgh/admin.php?s=/Order/order.html">全部</a></li>
			<li><a href="admin.php?s=/Order/unshipped/status/2.html">待付款</a></li>
			<li><a href="admin.php?s=/Order/unshipped/status/3.html" >待发货</a></li>
			<li><a href="admin.php?s=/Order/unshipped/status/4.html">已发货</a></li>
			<li><a href="admin.php?s=/Order/unshipped/status/5.html">待评价</a></li>
			<li><a href="admin.php?s=/Order/unshipped/status/1.html">已完成</a></li>
			<!--<li><a href="admin.php?s=/Order/orderretrun.html">退货退款</a></li>-->
			<li><a href="admin.php?s=/Order/unshipped/status/10.html">已取消</a></li>
		</ul>
	</div>


	<div class="table-striped">
		<notempty name="_list">
			<volist name="_list" id="vo">
				<div class="item-box">
					<div class="order-top">
						<div class="col-sm-4"><label>订单单号：</label>{$vo.order_no}</div>
						<div class="col-sm-4"><label>用户ID：</label>45125</div>
						<div class="col-sm-4"><label>下单时间：</label>2016-03-14  15:14:20</div>
					</div>
					<div class="item-table">

						<table>
							<!-- 表头 -->

							<tr>
								<volist name="list_grids" id="field">
									<th>{$field.title}</th>
								</volist>
								<th>订单类型</th>
								<th rowspan="2" class="no-padding">
									<table>
										<tr>
											<th>商品信息</th><th>商品编码</th><th>数量</th>
										</tr>
										<tr>
											<td>
												<div class="goods-box">
													<div class="image-box"><img></div>
													<div class="goods-detail">
														<p>200元火车票大礼包</p>
														<small>sku信息</small>
													</div>
												</div>
											</td><td>AS3455353</td><td>1</td>
										</tr>
										<tr>
											<td>
												<div class="goods-box">
													<div class="image-box"><img></div>
													<div class="goods-detail">
														<p>200元火车票大礼包</p>
														<small>sku信息</small>
													</div>
												</div>
											</td><td>AS3455353</td><td>1</td>
										</tr>
									</table>
								</th>
								<th>实付款</th>
								<th>收货信息</th>
								<th>状态</th>
								<th>操作</th>
							</tr>
							<tr>
								<td>定制订单</td>
								<td>455.00元</td>
								<td>地址：浙江省 杭州市 上城区 西湖国际 1幢9F<br>
									联系人：刘德华<br>
									联系人手机：15553465657
								</td>
								<td><a>待发货</a></td>
								<td>
									<a class="open-html open-delivery" href="http://localhost/qgh/admin.php?s=/Order/delivery.html">发货</a><br>
									<!--<a href="http://localhost/qgh/admin.php?s=/Order/delivery.html">发货</a><br>-->
									<!--<a href="http://localhost/qgh/admin.php?s=/Order/remark.html">平台备注</a>-->
									<a class="open-html open-checkshipped" href="http://localhost/qgh/admin.php?s=/Order/checkshipped.html">物流信息</a><br>
									<a class="open-html open-checkshipped" href="http://localhost/qgh/admin.php?s=/Order/checkevaluated.html">查看评价</a><br>
								</td>
							</tr>
						</table>
					</div>
					<div class="order-bottom">
						<p><label>平台备注：</label>已电话联系仓库验货，等待回复</p>
					</div>
				</div>
			</volist>
			<else/>
			<td colspan="6" class="text-center"> aOh! 暂时还没有内容! </td>
		</notempty>


	<div class="page">
		{$_page}
	</div>

</block>

<block name="script">
	<script type="text/javascript" charset="utf-8">
		//搜索功能
		$("#search").click(function(){
			var url = $(this).attr('url');
			var query  = $('.search-form').find('input').serialize();
			query = query.replace(/(&|^)(\w*?\d*?\-*?_*?)*?=?((?=&)|(?=$))/g,'');
			query = query.replace(/^&/g,'');
			if( url.indexOf('?')>0 ){
				url += '&' + query;
			}else{
				url += '?' + query;
			}
			window.location.href = url;
		});
		//回车搜索
		$(".search-input").keyup(function(e){
			if(e.keyCode === 13){
				$("#search").click();
				return false;
			}
		});
		//导航高亮
		highlight_subnav('{:U('Trader/traderList')}');

		$(function(){
			$('body').on('click', '.open-html', function(event){
				event.stopPropagation();
				var url = $(this).attr('href');
				if( !url )	return	false;
				var tips = $(this).hasClass('open-delivery') ? '请为该订单填写物流单号' : '物流信息',
					button = $(this).hasClass('open-delivery') ? true : false;
				load_html({
					url: url,
					title: tips,
					button: button
				});
				return false;
			});
		});
	</script>
	<script type="text/javascript" charset="utf-8">
		onload = function ()
		{
			setInterval (function ()
			{
				var date = new Date ();
//				txt.value = date.toLocaleDateString();
			});

		}

	</script>
</block>